import Pageable from "@/utils/Pageable";
import { Request } from "@/utils/http";
import { ServerResponse } from "@/utils/serverResponse";

interface loginParams {
    username: string,
    password: string
}

export default class LoginApi {

    // 获取收支列表
    public async login(params: loginParams): Promise<any | undefined> {
        const res: ServerResponse<any> = await Request.post('/api/login', params)
        return res.data
    }
}